package com.godz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("index2hp")
//荣誉照片
public class index2Hp {
    @TableId(type = IdType.AUTO) //加了auto代表自增的id
    private Integer id;
    private String hpTitle;//荣誉照片标题
    private String hpUnit;//发奖单位
    private Integer hpCategory;//获奖类别 1科技 2文艺 3体育
    private String hpDate;
    private String hpLevel;//获奖等级
    private String hpHtitle;//幽默标题
    private String hpCon;//内容
    private String hpImg1;
    private String hpImg2;
    private String hpImg3;
    //非数据库表中的字段
    @TableField(exist = false)
    private String cname;//自我判断class

}
